﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using FeCMS.Common.Enum;


namespace FeCMS.Entity.AccessControlModule
{
    /// <summary>
    ///     管理员
    /// </summary>
    [Serializable()]
    public class Admin
    {

        /// <summary>
        ///     用户名
        /// </summary>
        public string UserName
        {
            get;
            set;
        }
        /// <summary>
        ///     密码
        /// </summary>
        public string Password
        {
            get;
            set;
        }

        /// <summary>
        ///     角色类型
        /// </summary>
        public VisitorsType RoleType
        {
            get { return VisitorsType.admin; }
        }

        /// <summary>
        ///     角色ID
        /// </summary>
        public int[] RoleID
        {
            get;
            set;
        }

        /// <summary>
        ///     私有权限
        /// </summary>
        public int[] PrivatePermission
        {
            get;
            set;
        }

        /// <summary>
        ///     启用状态
        /// </summary>
        public bool Enabled
        {
            get;
            set;
        }
    }
}
